package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AgentLackStockReq implements Serializable {

    private Long id;

    @ApiModelProperty(value = "代理商商品状态",required = true)
    @NotNull(message = "代理商商品状态不可为空")
    @Range(min = 0,max = 1,message = "代理商商品状态只有两种")
    private Byte commodityStatus;
}
